package com.hy.erp.inventory.pojo;

import java.io.Serializable ;
import java.util.Date ;

import javax.persistence.Column ;
import javax.persistence.Entity ;
import javax.persistence.Id ;
import javax.persistence.Table ;

import org.hibernate.annotations.Index ;
//import org.jboss.seam.annotations.Name ;

import com.hy.erp.inventory.dao.interfaces.IUnitNameDao;
import com.hy.erp.inventory.pojo.interfaces.IUnitName;
//import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.api.annotation.DaoA;
//import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.entity.AbstractPersistentEntity;
import com.hy.mydesktop.shared.persistence.domain.gxt.MyBaseModel;

/**
 * 
 * <ul>
 * <li>开发作者：李冰</li>
 * <li>设计日期：2010-10-6；时间：下午01:21:18</li>
 * <li>类型名称：UnitName</li>
 * <li>设计目的：单位名称设置</li>
 * </ul>
 * <ul>
 * <b>修订编号：</b>
 * <li>修订日期：</li>
 * <li>修订作者：</li>
 * <li>修订原因：</li>
 * <li>修订内容：</li>
 * </ul>
 */
@Entity
@Table(name="t_unitName")
/*
@Name("unitName")
@DaoA(IUnitNameDao.class)
*/
//public class UnitName extends AbstractPersistentEntity implements IUnitName
public class UnitName extends MyBaseModel //implements IPositonType

{

	
	/**
	 * <ul>
	 * <li>开发作者：李冰</li>
	 * <li>设计日期：2010-10-6；时间：下午01:25:39</li>
	 * <li>字段类型：long；字段名称：serialVersionUID</li>
	 * <li>设计目的：</li>
	 * </ul>
	 * <ul>
	 * <b>修订编号：</b>
	 * <li>修订日期：</li>
	 * <li>修订作者：</li>
	 * <li>修订原因：</li>
	 * <li>修订内容：</li>
	 * </ul>
	 */
	private static final long serialVersionUID = 55766744914598555L;
	public UnitName ( )
	{
		super ( ) ;
	}
	
	@Column(name="abbreviation",length=50)
	@Index(name="abbreviationIndex")
	public String getAbbreviation ( )
	{
		return this.get(IUnitName.ABBREVIATION) ;
	}
	public void setAbbreviation (
									String abbreviation )
	{
		super.set(IUnitName.ABBREVIATION, abbreviation);
	}
	@Column(name="englishNsme",length=50)
	@Index(name="englishNsmeIndex")
	public String getEnglishName ( )
	{
		return this.get(IUnitName.ENGLISHNAME) ;
	}
	public void setEnglishName (
									String englishNsme )
	{
		super.set(IUnitName.ENGLISHNAME, englishNsme);
	}
	@Column(name="createDate",length=50)
	@Index(name="createDateIndex")
	public Date getCreateDate ( )
	{
		return this.get(IUnitName.CREATEDATE) ;
	}
	public void setCreateDate (
								Date createDate )
	{
		super.set(IUnitName.CREATEDATE, createDate);
	}
	
	@Column(name="unitsName",length=50)
	@Index(name="unitsNameIndex")
	public String getUnitsName ( )
	{
		return this.get(IUnitName.UNITSNAME) ;
	}
	public void setUnitsName (
									String unitsName )
	{
		super.set(IUnitName.UNITSNAME, unitsName);
	}
	
	

	
}
